<?php
namespace app\index\controller;
use \app\index\controller\Base;
use \think\Db;
class Team extends Base
{
    public function index()
    {
        $seo=Db::name("seo")->where("class","team")->find();
        $this->assign("seo",$seo);
    	$this->assign('menu','4');
        $lawyer=Db::name("lawyer")->order("id","desc")->paginate(9,false,["query"=>Request()->post()]);
        $this->assign('lawyer',$lawyer);
        $this->assign('page',$lawyer->render());   
    	// $this->assign('_title','新闻列表');
        return $this->fetch();
    }

    //新闻详情页
    public function info(){
		$seo=Db::name("seo")->where("class","team")->find();
        $this->assign("seo",$seo);
    	//新闻
        $lawyer=Db::name('lawyer')->where('id',$this->request->param('id'))->find();
        $this->assign('lawyer',$lawyer);
    	$this->assign('menu','4');
    	// $this->assign('_title',"新闻详情");
        return $this->fetch();
    }
}
